/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: UserDto
 * Author:   kadibeieun
 * Date:     2019/8/9 14:51
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.mengde.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mengde.model.entity.User;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author kadibeieun
 * @create 2019/8/9
 * @since 1.0.0
 */
@Table(name = "user")
public class UserDto extends User implements Serializable {
    private static final long serialVersionUID = -3151323560739017920L;
    /**
     * 登录时间
     */
    @Transient
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date loginTime;

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

}